/*
 * @Author: lucky
 * @Date: 2021-06-29 08:46:42
 * @LastEditors: Mogy
 * @LastEditTime: 2021-07-03 09:50:57
 * @Description: 
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/Login')
  },
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/Home'),
    children: [
      {
        path: 'indexDetails',
        name: 'IndexDetails',
        component: () => import('@/views/home/IndexDetails')
      },
      {
        path: 'help',
        name: 'Help',
        component: () => import('@/views/home/IndexHelp')
      },
      {
        path: 'index',
        name: 'Index',
        component: () => import('@/views/home/Index')
      },
      {
        path: 'order',
        name: 'Order',
        component: () => import('@/views/home/Order')
      },
      {
        path: 'money',
        name: 'Money',
        component: () => import('@/views/home/Money')
      },
      {
        path: 'mine',
        name: 'Mine',
        component: () => import('@/views/home/Mine')
      },
      {
        path: 'oreder_deatils',
        name: 'Oreder_deatils',
        component: () => import('@/views/home/oreder_deatils')
      }

    ]
  },
  {
    path: '/certification',
    name: 'Certification',
    component: () => import('@/views/mine/Certification')
  },
  {
    path: '/userParams',
    name: 'UserParams',
    component: () => import('@/views/mine/UserParams')
  }

]

const router = new VueRouter({
  // mode: 'history', 路由模式的修改
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
